package com.design.pattern.decorator;

/**
 * @Description 装饰者类
 * @author ll
 * @createTime 2021/6/1  16:35 
 */
public  class Decorator extends Person{

	private Person person;

	public void decorator(Person person) {
		this.person = person;
	}

	@Override
	public void show(){
		if(person!=null){
			person.show();
		}
	}
}
